export const getToken = () => {
  const params = new URLSearchParams(window.location.search);
  if (process.env.NODE_ENV === 'development') {
    const devToken = process.env.TOKEN;
    return params.get('token') || devToken;
  }
  return params.get('token');
};
